# https://blog.lime.link/how-to-self-host-your-podcast/
# 原作者保留一切权利

module Jekyll
  class FileSizeBlock < Liquid::Block

    def initialize(tag_name, markup, tokens)
      super
    end

    def render(context)
      "#{File.size super}"
    end
  end
end

Liquid::Template.register_tag('filesize', Jekyll::FileSizeBlock)

